<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>${requestScope.TARTICLE.articleTitle}</title>
<link rel="stylesheet" type="text/css" href="<%=path%>/css/style.css" />
<link rel="stylesheet" type="text/css" href="gallery/jquery.ad-gallery.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="<%=path%>/gallery/jquery.ad-gallery.js"></script>
 <script type="text/javascript">
  $(function() {
    $('img.image1').data('ad-desc', 'Whoa! This description is set through elm.data("ad-desc") instead of using the longdesc attribute.<br>And it contains <strong>H</strong>ow <strong>T</strong>o <strong>M</strong>eet <strong>L</strong>adies... <em>What?</em> That aint what HTML stands for? Man...');
    $('img.image1').data('ad-title', 'Title through $.data');
    $('img.image4').data('ad-desc', 'This image is wider than the wrapper, so it has been scaled down');
    $('img.image5').data('ad-desc', 'This image is higher than the wrapper, so it has been scaled down');
    var galleries = $('.ad-gallery').adGallery();
    $('#switch-effect').change(
      function() {
        galleries[0].settings.effect = $(this).val();
        return false;
      }
    );
    $('#toggle-slideshow').click(
      function() {
        galleries[0].slideshow.toggle();
        return false;
      }
    );
    $('#toggle-description').click(
      function() {
        if(!galleries[0].settings.description_wrapper) {
          galleries[0].settings.description_wrapper = $('#descriptions');
        } else {
          galleries[0].settings.description_wrapper = false;
        }
        return false;
      }
    );
  });
  </script>
  
   <style type="text/css">
  * {
    font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Arial, sans-serif;
    color: #333;
    line-height: 140%;
  }
  select, input, textarea {
    font-size: 1em;
  }
  body {
    padding: 30px;
    font-size: 70%;
    width: 800px;
  }
  h2 {
    margin-top: 1.2em;
    margin-bottom: 0;
    padding: 0;
    border-bottom: 1px dotted #dedede;
  }
  h3 {
    margin-top: 1.2em;
    margin-bottom: 0;
    padding: 0;
  }
  .example {
    border: 1px solid #CCC;
    background: #f2f2f2;
    padding: 10px;
  }
  ul {
    list-style-image:url(list-style.gif);
  }
  pre {
    font-family: "Lucida Console", "Courier New", Verdana;
    border: 1px solid #CCC;
    background: #f2f2f2;
    padding: 10px;
  }
  code {
    font-family: "Lucida Console", "Courier New", Verdana;
    margin: 0;
    padding: 0;
  }

  #gallery {
    padding: 30px;
    background: #e1eef5;
  }
  #descriptions {
    position: relative;
    height: 50px;
    background: #EEE;
    margin-top: 10px;
    width: 640px;
    padding: 10px;
    overflow: hidden;
  }
    #descriptions .ad-image-description {
      position: absolute;
    }
      #descriptions .ad-image-description .ad-description-title {
        display: block;
      }
  </style>
</head>
<body>
<div id="main_container">

	<!--top  -->
	<jsp:include page="top.jsp" flush="true"></jsp:include>
    
           
            
            
    <div id="main_content">
    
    	<!-- banner -->
    	<div id="middle_banner">
        	<div class="middle_banner_content">
       			 <img src="<%=path %>/images/banner_content.png" alt="" title="" width="417" height="142" />
            </div>
        </div>
        
        
        <div id="left_content">
        
        
        <div id="container">
   
    
    

    <div id="gallery" class="ad-gallery">
    
      <div class="ad-nav">
        <div class="ad-thumbs">
          <ul class="ad-thumb-list">
          	<s:iterator id="f" value="#request.ARTICLE_FILE">
            <li>
              <a href="<%=path%>/gallery/images/1.jpg">
                <img src="<%=path%>/gallery/images/thumbs/t1.jpg"  class="image0" />
              </a>
            </li>
            <li>
              <a href="<%=path%>/gallery/images/1.jpg">
                <img src="<%=path%>/gallery/images/thumbs/t1.jpg"  class="image1" />
              </a>
            </li>
            </s:iterator> 
          </ul>
        </div>
      </div>
    </div>

    <div id="descriptions">

    </div>

    <p>Examples of how you can alter the behaviour on the fly;
    Effect: <select id="switch-effect">
      <option value="slide-hori">Slide horizontal</option>
      <option value="slide-vert">Slide vertical</option>
      <option value="resize">Shrink/grow</option>
      <option value="fade">Fade</option>
      <option value="">None</option>
    </select>
    <a href="#" id="toggle-slideshow">Toggle slideshow</a> |
    <a href="#" id="toggle-description">Toggle having description outside of image</a>
    </p>
  </div>
        
        
        <h1>资讯</h1>
       
		       <div class="post">

					<h2 class="title">${requestScope.TARTICLE.articleTitle}</h2>

					<p class="meta"><span class="date"><s:property value="#request.TIME"/>&nbsp;&nbsp;|</span><span class="posted">作者：<a href="#"><s:property value="#request.TARTICLE.userName" /></a></span></p>

					<div style="clear: both;">&nbsp;</div>

					<div class="entry">
						<span>${requestScope.TARTICLE.articleContent }</span>
						<s:iterator id="f" value="#request.ARTICLE_FILE">
						<p><img src="<%=path %>${requestScope.f.articleFileUrl }"/></p>
						</s:iterator>
						
						<p class="links"><a href="#">Read More</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="#">Comments</a></p>

					</div>

				</div>
				      
        </div>
    
        <div id="right_content"> 
            
         <h1>Testimonials</h1>   
         <p class="news">
        <img src="<%=path %>/images/icon4.png" alt="" title="" class="left_img"  width="48" height="48" />
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt
        </p>            
            
          <p class="news">
        <img src="<%=path %>/images/icon4.png" alt="" title="" class="left_img" width="48" height="48" />
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt
        </p>  
        
          <p class="news">
        <img src="<%=path %>/images/icon4.png" alt="" title="" class="left_img" width="48" height="48" />
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt
        </p>         
                   
          <p class="news">
        <img src="<%=path %>/images/icon4.png" alt="" title="" class="left_img" width="48" height="48" />
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt
        </p>  
        
          <p class="news">
        <img src="<%=path %>/images/icon4.png" alt="" title="" class="left_img" width="48" height="48" />
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt
        </p>  
                
        </div>
        
        <!-- foot -->   
        <jsp:include page="foot.jsp" flush="true"></jsp:include>
    </div>

</div>
</body>
</html>
